import { createContext } from 'react';
import { FormInstance } from 'antd';
// @ts-ignore
export const Ctx = createContext<{onSubmit: (...args: any[]) => void, formInstance: FormInstance, onCancel: () => void}>({onSubmit: () => {}, formInstance: null, onCancel: () => {}});